<!-- $Id: wxch_fun.html 2013-10-16 09:59:06Z djks $ -->

{if $full_page}
{include file="wxch_pageheader.htm"}
{insert_scripts files="../data/static/js/utils.js,./js/listtable.js"}

<form method="POST" action="wxch_lang.php?act=batch_remove" name="listForm">

<!-- start cat list -->

<div class="list-div" id="listDiv">

{/if}

<table cellspacing='1' cellpadding='3' id='list-table' >

  <tr>

    <th><a href="javascript:listTable.sort('cat_id'); ">语言名称</a></th>

    <th><a href="javascript:listTable.sort('is_open'); ">内容</a></th>

    <th>操作</th>

  </tr>

   {foreach from=$wxchdata item=list}

    <tr>

    <td align="center"><span>{$list.lang_name}</span></td>

    <td align="center"><span>{$list.lang_value}</span></td>

    <td align="center" nowrap="true"><span>

      <a href="wxch_lang.php?act=edit&id={$list.lang_id}" title="编辑"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>&nbsp;

     <!--  --></span>

    </td>

   </tr>

    {/foreach}

     <tr>&nbsp;

    <td align="right" nowrap="true" colspan="8">      <!-- $Id: page.htm 14216 2008-03-10 02:27:21Z testyang $ -->

            <div id="turn-page">

        总计  <span id="totalRecords">{$filter.record_count}</span>

        个记录分为 <span id="totalPages">{$filter.page_count}</span>

        页当前第 <span id="pageCurrent">{$filter.page}</span>

        页，每页 <input type='text' size='3' name="page_size" id='pageSize' value="{$filter.page_size}" onkeypress="return listTable.changePageSize(event)" />

        <span id="page-link">
          <a href="javascript:listTable.gotoPageFirst()">第一页</a>

          <a href="javascript:listTable.gotoPagePrev()">上一页</a>

          <a href="javascript:listTable.gotoPageNext()">下一页</a>

          <a href="javascript:listTable.gotoPageLast()">最末页</a>

          <select id="gotoPage" onchange="listTable.gotoPage(this.value)">

              {create_pages count=$filter.page_count page=$filter.page}
          </select>

      </div>

</td>

  </tr>

</table>



{if $full_page}

</div>

</form>

<!-- end cat list -->

<script type="text/javascript" language="JavaScript">

    listTable.recordCount = {$filter.record_count};

    listTable.pageCount = {$filter.page_count};

    var page_size   = {$filter.page_size};



    listTable.filter.type = 'keyword';

    listTable.filter.pagesize = '{$filter.page_size}';

    listTable.filter.record_count = '{$filter.record_count}';

    listTable.filter.page = '{$filter.page}';

    listTable.filter.page_count = '{$filter.record_count}';

    listTable.filter.start = '{$filter.start}';

    



  onload = function()

  {

    // 开始检查订单

    startCheckOrder();

  }

	/**

   * @param: bool ext 其他条件：用于转移分类

   */

  function confirmSubmit(frm, ext)

  {

      if (frm.elements['type'].value == 'button_remove')

      {

          return confirm(drop_confirm);

      }

      else if (frm.elements['type'].value == 'not_on_sale')

      {

          return confirm(batch_no_on_sale);

      }

      else if (frm.elements['type'].value == 'move_to')

      {

          ext = (ext == undefined) ? true : ext;

          return ext && frm.elements['target_cat'].value != 0;

      }

      else if (frm.elements['type'].value == '')

      {

          return false;

      }

      else

      {

          return true;

      }

  }

	 function changeAction()

  {

		

      var frm = document.forms['listForm'];



      // 切换分类列表的显示

      frm.elements['target_cat'].style.display = frm.elements['type'].value == 'move_to' ? '' : 'none';



      if (!document.getElementById('btnSubmit').disabled &&

          confirmSubmit(frm, false))

      {

          frm.submit();

      }

  }



 /* 搜索文章 */

 function searchArticle()

 {

    listTable.filter.keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);

    listTable.filter.page = 1;

    listTable.loadList();

 }



 

</script>

{include file="wxch_pagefooter.htm"}

{/if}